<?php /* Smarty version Smarty-3.1.8, created on 2012-04-16 13:14:13
         compiled from "C:\xampp\htdocs\Projects\Project_step\administrator\themes\release\games\new_games.tpl" */ ?>
<?php /*%%SmartyHeaderCode:228704f7ed61e92d374-38246495%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9a73fc534b582db97c7b364f58d0225659a07d41' => 
    array (
      0 => 'C:\\xampp\\htdocs\\Projects\\Project_step\\administrator\\themes\\release\\games\\new_games.tpl',
      1 => 1333723250,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '228704f7ed61e92d374-38246495',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f7ed61e9e62f8_21519270',
  'variables' => 
  array (
    'genres' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f7ed61e9e62f8_21519270')) {function content_4f7ed61e9e62f8_21519270($_smarty_tpl) {?><h3>Форма добавления новой игры</h3>
<form method="post" action="" id="newGenre" enctype="multipart/form-data" onSubmit="return isData();">
	<div>Жанр игры</div>
    <select name="g_genre">
    	<option value="null">Укажите жанр игры</option>	
    	<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['genres']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
        	<option value="<?php echo $_smarty_tpl->tpl_vars['item']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value->name;?>
</option>
        <?php } ?>
    </select>
	<div>Загаловок игры</div>
    <input type="text" name="g_name" />
    <div>Описание игры</div>
    <textarea name="g_descr"></textarea>
    <div>Иконка игры</div>
    <input type="file" name="g_icon" />
    <br/>
    <br/>
	<input type="submit" value="Добавит" name="btnAdd" class="btnAdd" />
</form>

	<?php }} ?>